package com.hm.one;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class Fish {
	
	private String type;
	private String address;
	
	@Autowired
	private Water water;
	
	public Water water() {
		return water;
		
	}
	
	public Water getWater() {
		return water;
	}
	
	public void setWater(Water water) {
		this.water = water;
	}
	
	public Fish() {
	}
	
	public Fish(String type, String address, Water water) {
		this.type = type;
		this.address = address;
		this.water = water;
	}

	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	
	
	@Override
	public String toString() {
		return "Fish [type=" + type + ", address=" + address + ", water=" + water + "]";
	}
	
	
}
